import React, { Component } from 'react'

export default class PropsCom extends Component {
  render() {
    // console.log(this);
    //获取外部传入的数据
    let {name, age, gender} = this.props;
    return (
      <ul>
        <li>姓名: {name}</li>
        <li>年龄: {age}</li>
        <li>性别: {gender}</li>
      </ul>
    )
  }
}
